Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(protocol): allow srcOwner to have unlimited gas limit on dest retry invocation #17705

Closed
wants to merge 1 commit into from

Conversation

adaki2004
Copy link
Contributor

Beside destOwner, also allow srcOwner to call retryMessage with non restrictive gas limit. (This is due to the fact of discord messages in question.)

The only downside of this is a very rare possibility of: someone on the destination chain, control the srcOwner address and make the message failed -> but even in this case, highly unlikely that anyone would set up a sniper bot for this action since it would result in 0 capital gains, as the funds were be available to re-claim it on the source chain, by the original srcOwner, who is indeed in charge on the source chain.

Given the fact we ran into an edge case with contracts being the destination owners, but lacking the relay function to retryMessage with unlimited gas, mght be worth considering this addition

OR

If the option is to let them upgrade their contracts (as per discord message link suggestions above), than it's OK to close and not merge this PR.

@adaki2004 adaki2004 requested review from Brechtpd, dantaik, KorbinianK, swarna1101 and cyberhorsey and removed request for Brechtpd June 29, 2024 06:40
Copy link

fix(protocol): allow srcOwner to have unlimited gas limit on dest retry invocation

Generated at commit: 16ea0d24dc8239012fc3f08e7b31c2633a8cc24e

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
2
0
8
42
54
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@dantaik
Copy link
Contributor

dantaik commented Jun 30, 2024

@adaki2004 What do you think we simply use gaslef() in retryMessage() as shown here: #17708

@dantaik dantaik closed this Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants